package dk.dashboardFP.panelHolder {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.IEventDispatcher;

	/**
	 * @author josef
	 */
	public class PanelHolder extends Sprite {
		
		public function PanelHolder() {
			
			setupElements();
		}
		
		private function setupElements() : void {
		
			//:::::::
			// register stage
			addEventListener(Event.ADDED_TO_STAGE, onAddedToStage, false, 0, true);
		}
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// register
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		private function onAddedToStage(event : Event) : void {
			IEventDispatcher(event.target).removeEventListener(event.type, arguments["callee"]);
			stage.addEventListener(Event.RESIZE, onStageResize, false, 0, true);
			
		}
		
		private function onStageResize(event : Event) : void {
			update();
		}
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// update
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		private function update() : void {
		}
	}
}
